package Arrays101.Test;

import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.TreeMap;

/**
 * @author Alger
 * @date 2021/6/21  9:03
 */
public class Test04 {
    public static void main(String[] args) {
        HashSet<String> str = new HashSet<>();
        str.add("1");
        str.add("2");
        str.add("4");
        str.add("3");
        System.out.println(str);

        LinkedHashSet<Object> objects = new LinkedHashSet<>();
        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
        TreeMap<Object, Object> objectObjectTreeMap = new TreeMap<>();
        objectObjectTreeMap.put(1,1);
        objectObjectTreeMap.put(3,3);
        objectObjectTreeMap.put(2,2);
        System.out.println(objectObjectTreeMap);

    }
}
